Ext.define('OrderConvert.view.log.LogGridModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.log-loggrid',
    data: {
        name: 'OrderConvert'
    },

    stores : {
        logStore : {
            fields : [
                { name: 'LOG_ID', type: 'auto' },
                { name: 'GN_TYPE', type: 'auto' },
                { name: 'CZ_FILENAME', type: 'auto' },
                { name: 'CZ_PP', type: 'auto' },
                { name: 'CZ_TIME', type: 'auto' },
                { name: 'CZ_TYPE', type: 'auto' }
            ],

            proxy: {
                type: 'ajax',
                method: "post",
                url: OrderConvertUrl.constant.serverUrl + 'log/list',
                reader: {
                    totalProperty:"totalRow",
                    type: 'json',
                    rootProperty: 'list'
                }
            },
            autoLoad: true
        }
    }

});
